home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Frameworks / TransSkel 3.18 / Documents / Misc / movable-modal-wdef-zen.txt
Encoding:
Text File  |  1993-06-07  |  6.7 KB  |  48 lines  |  [TEXT/ttxt]

  1. 28, therefore
  2. the ProcID should be (16 * 128) + 5 = 2053.  To support zooming, you add 8.  Do
  3. not use this 'WDEF' as ResID = 0.  This would override the standard 'WDEF', and
  4. things are changing.  System Software after 6.0.4 has a very slight change in
  5. the window's drop shadow on a multibit depth Macintosh.
  6.  
  7. Furthermore, the window may change slightly in look and behavior for System
  8. 7.0.  The current version of the movable-modal draws a gray frame when the
  9. window is deactivated.  This was done because the application can be switched
  10. into the background and the movable-modal should not appear as a modal dialog.
  11. You should use the standard 'WDEF' while running System 7.0.  In this case, the
  12. ProcID is (16 * 0) + 5 = 5.  This is a little tricky and I'll leave the
  13. explanation to my sample code.  I promise I'll release this very soon (I just
  14. got the 'WDEF' finished).
  15.  
  16. "What about that bug we saw?"
  17.  
  18. The problem reported in the first release of the 'WDEF' has been found and
  19. solved.  The real problem is not in the 'WDEF', but that it is being used
  20. incorrectly.  Namely, this new window should not be used with _ModalDialog.
  21. The problem is a conflict with the Window Manager and MultiFinder's patch to
  22. _ModalDialog.  There is a field in the Window Record used by the 'WDEF'.
  23. Originally this field was named "spareFlag."  When zoomable windows were
  24. invented, this flag was used to determine if the window supported the zoom box.
  25. Since that time, this same field has become known as "wZoom."
  26.  
  27. MultiFinder uses this field in its patch to _ModalDialog which prevents
  28. switching to another application.  Hitherto unknown, this conflict wasn't a
  29. problem because modal windows had no title bars.  I've made a change in the
  30. 'WDEF' to ignore this field of the window record.  That solves the conflict of
  31. MultiFinder's patch to _ModalDialog.
  32.  
  33. The fixed version is a ResEdit file created:  Mar 1, 1990
  34.  
  35. You can also verify you have the right WDEF resource by looking at the first
  36. few bytes.
  37.  
  38. $600A0000    This is a JMP instruction
  39. $57444546    This is ASCII for "WDEF"
  40. $0080        This is the ResID=128
  41. $0065        This is the version number 1.01
  42.  
  43. Finally, I've named this 'WDEF' resource "movable-modal 1.01."
  44.  
  45.  
  46. Jim Reekes E.O., Macintosh Developer Technical Support
  47. Thursday, March 1, 1990   5:08 PM
  48.